<?php
$mod_title="страница id $_GET[id]";
$mod_status="on";
if($mod_status=="on")
{
function mod_body($auth,$adminauth)
{
include "server_config.php";
$query = "SELECT * FROM pages WHERE id='$_GET[id]'";
$cat = mysql_query ($query);
if(!$cat) exit (mysql_error());
while(list($id,$name,$login,$text) = mysql_fetch_row($cat))
{
echo "$id-$name<br>автор:$login<br>$text<br><br>";
}
include "data/button.php";
}
}
else
{
function mod_body($auth,$adminauth)
{
echo "мод выключен администратором!<br>";
}
}
?>